/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TestKelas;
import Koneksi.koneksi;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
/**
 *
 * @author Ignacio
 */
public class TestKoneksi {
       public static void main(String[] args) throws FileNotFoundException, IOException, SQLException {
        String result[] = koneksi.openConfigurationFile(new File("db.conf"));
        System.out.println("Host : " + result[0]);
        System.out.println("User : " + result[1]);
        System.out.println("Password: " + result[2]);

        Connection conn = koneksi.getDBConnection();
        if (conn != null) {
            System.out.println("Koneksi Berhasil");
        }
    }
}
